Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sling-web-component-select

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sling-web-component-select

## Install

  • 0.10.1
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

sling-web-component-select

Install

npm instal sling-web-component-select

Tag

  <sling-select></sling-select>

Dependencies

  • sling-web-framework
  • sling-web-helpers

Attributes and properties

NameTypeDefault ValuesReflectToAttributeObservercallSdk
disabledBooleanFalse:heavy_check_mark:
nameString:heavy_check_mark:
srcoptionsArray[ ]
sizeNumber:heavy_check_mark:
valueString:heavy_check_mark:

Description

NameDescription
disabledDisables the Select options, preventing the user from clicking and changing their style to dimmed.
nameNames the select tag to control.
srcoptionsArray of objects formed by the following properties: name that indicates the text that will be shown in the option and id that will be the value of the option and will be passed through an event to the form that uses the element. The tag will receive this array to mount the select options.
sizeIf the control is presented as a scroll listbox, this attribute represents the number of rows in the list box that should be visible at a given time. More info in Select MDN Docs.
valueValue of the selected tag in the current moment.

Events

  • change

Description: The event is triggered when a change of the value of select, taking in the detail of the event the value of the selected option.

Examples

srcoptions Array

const srcoptions = 
[
    {
      name: 'Option1',
      id: 1,
    },
    {
      name: 'Option2',
      id: 2,
    },
    {
      name: 'Option3',
      id: 3,
    }
]

All component examples can be emulated using the npm start sling-web-component-select command.

Use

<sling-select></sling-select>

image

<sling-select disabled></sling-select>

image

FAQs

Package last updated on 31 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc